/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 张宇田
 * Date: 2024-09-20
 * Time: 16:31
 */
public class Test {
    public static int addd(int a,int n){
        int sum =0;
        int term = 0;
        for (int i = 0;i<n;i++){
            //sum += term;
            term = term * 10 + a;//每一项
            sum += term;//让每一项加加
        }
        return sum;

    }

    public static void main(String[] args) {
        double money = 1000;
        int t = 6;
        double rate = 1+0.001875;
        for(int i = 0;i<6;i++){
            money*=rate;
        }
        System.out.printf("%.2f",money);
    }
// 第三步：在主方法中计算第六个月后总资金为多少


    public static void main4(String[] args) {
        int i= 5, j = 10;
        while (j>i) {
            j--;
            i++;
        }
        System.out.println( i+","+ j);

    }
    public static void main3(String[] args) {
        int count = 0;
        for(int i=0;i<3;i++){
            for(int j=0; j<3;j++){
                if(j == 0){
                    continue;
                }else{
                    count ++;
                    break;
                }
            }
        }
        System.out.println(count);
    }
    public static void main2(String[] args) {
        int count = 0;
        int i =3;
        int j = 0;
        do{
            j = 1;
            while(j<3){
                count ++;
                j ++;
            }
            i--;
        }while(i>0);
        count += j;
        System.out.println(count);



        /*int n= 7;
        int add =1;
        int tm = 1;
        for(int i = 0;i<n;i++){


            add *= tm;
            tm++;
        }
        System.out.print(add);*/
    }
    public static void main1(String[] args) {

        int n,a;
        a = 2;
        n = 2;
        int s = addd(a,n);
        System.out.println(s);
    }
}
